#ifndef _CONSOLE_LOG_H
#define _CONSOLE_LOG_H


class DLL_EXPORT CLog : public Single<CLog>
{
	HANDLE std_out;
	HANDLE std_err;
	Mutex lock;
public:
	CLog()
	{
		std_out = GetStdHandle(STD_OUTPUT_HANDLE);
	}
	void Notice(const char*, const char*, ...);
	void Success(const char*, const char*, ...);
	void Error(const char*, const char*, ...);
	void Warning(const char*, const char*, ...);
};

#define Log CLog::getSingle()

#endif